﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="mgrUsers.aspx.cs" Inherits="WebUI.Pages.mgrUsers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphTop" runat="server">
    <asp:Label runat="server" Text="" ID="lblMsg"></asp:Label>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphContent" runat="server">
<div id="content">
<h2>Gerenciar Usuários</h2>
    <div id="options">
        <table id="tbNovo">
            
            <tr>
                <td colspan="5" align="center"><h4>Novo Usuário</h4></td>
            </tr>
            
            <tr>
                <td>Nome:</td>
                <td><asp:TextBox ID="txtNome" runat="server" Width="200px"></asp:TextBox></td>
                <td>Login:</td>
                <td><asp:TextBox id="txtLogin" runat="server" Width="200px"></asp:TextBox></td>
                <td></td>
            </tr>
            <tr>
                <td>Time:</td>
                <td>
                    <asp:DropDownList ID="ddlTime" runat="server" AppendDataBoundItems="true" 
                        Width="200px">
                        <asp:ListItem></asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>Gestor:</td>
                <td>
                    <asp:DropDownList id="ddlGestor" runat="server" AppendDataBoundItems="true" 
                        Width="200px">
                        <asp:ListItem></asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td><asp:Button id="cmdNovo" runat="server" Text="Novo" onclick="cmdNovo_Click" /></td>
            </tr>
        </table>
    </div>
    <br />
    <div id="search">
        <asp:Button ID="cmdUpdate" runat="server" Text="Atualizar" 
            onclick="cmdUpdate_Click" />
        <asp:Repeater ID="rpUsuarios" runat="server" 
            onitemcommand="rpUsuarios_ItemCommand">
    
        <HeaderTemplate>
            <table id="tablegrid">
                <thead>
                    <th scope="col">idUsuario</th>
                    <th scope="col">Nome</th>
                    <th scope="col">Time</th>
                    <th scope="col">Login</th>
                    <th scope="col">Gestor</th>
                    <th scope="col"></th>
                </thead>
                <tbody>
        </HeaderTemplate>        
        <ItemTemplate>
            <tr>
                <td> <%# Eval("idUsuario") %> </td>
                <td> <%# Eval("Nome") %></td>
                <td> <%# Eval("DescTime") %> </td>
                <td> <%# Eval("Login") %> </td>
                <td> <%# Eval("Gestor")%> </td>
                <td><asp:Button runat="server" ID="cmdEdit" CommandName="cmdEdit" CommandArgument= <%# Eval("idUsuario") %> Text="Editar"/></td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
                </tbody>
            </table>
        </FooterTemplate>
        </asp:Repeater>
    </div>
</div>
</asp:Content>
